import request from '@/utils/request'

// 查询单户用信100w以下的个人贷款列表
export function listDhyx(query) {
  return request({
    url: '/buss/reportLsb/grdhyx',
    method: 'get',
    params: query
  })
}

// 查询单户用信100w以下的个人贷款详细
export function getDhyx(sjrq) {
  return request({
    url: '/buss/dhyx/' + sjrq,
    method: 'get'
  })
}

// 新增单户用信100w以下的个人贷款
export function addDhyx(data) {
  return request({
    url: '/buss/dhyx',
    method: 'post',
    data: data
  })
}

// 修改单户用信100w以下的个人贷款
export function updateDhyx(data) {
  return request({
    url: '/buss/dhyx',
    method: 'put',
    data: data
  })
}

// 删除单户用信100w以下的个人贷款
export function delDhyx(sjrq) {
  return request({
    url: '/buss/dhyx/' + sjrq,
    method: 'delete'
  })
}
